package com.parksys.common;

/**
 * @Author Su
 * @Date 2020/8/11 15:34
 * @Version 1.0
 * common 共同
 */
public class JsonResult {
    /***
     * 1  正常
     * 0  异常
     */
    private int code;
    /***
     * 返回给前端的数据
     */
    private Object info;

    public JsonResult() {
    }

    public JsonResult(int code, Object info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(Object info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "JsonResult{" +
                "code=" + code +
                ", info=" + info +
                '}';
    }
}
